package com.muyan.sys.webscoket.constant;

/**
 * 缓存的key 常量
 * 
 * @author muyan
 */
public class ChatCacheConstants {

    // Redis key 前缀
    public static final String GROUP_MEMBERS_KEY = "group:members:";
    public static final String GROUP_INFO_KEY = "group:info:";
    public static final String GROUP_ADMIN_KEY = "group:admin:";
    public static final String HEARTBEAT_KEY_PREFIX = "heartbeat:";

    // 用户状态相关
    public static final String USER_STATUS_KEY = "user:status:";
    public static final String GROUP_UNREAD_KEY = "group:unread:";
    public static final String OFFLINE_MESSAGES_KEY = "offline:messages:";
    public static final String OFFLINE_GORUP_MESSAGES_KEY = "offline:group:messages:";
    // 消息队列相关
    public static final String QUE_PRIVATE = "que:chat:private:";

    public static final String QUE_GROUP_CHAT = "que:chat:group:";
    public static final String QUE_GROUP = "que:group:";
    public static final String QUE_IP = "que:ip:";
    
    // 交换机相关
    public static final String MQ_PRIVATE_EXCHANGE = "chat.exchange";
    public static final String MQ_GROUP_WS_EXCHANGE = "ws.group.exchange";
    public static final String MQ_GROUP_CHAT_EXCHANGE = "group.chat.exchange";
}
